<?php

/**
 * @application Automatical Judging System
 * @author deltamaster
 * @copyright Softrank Research Center
 * @version 2.0.0.0
 */
 
for ($i = 0; $i <= 99; $i++) $menulist[$i]['flag'] = false;

$menulist[98]['flag'] = true;
$menulist[98]['title'] = $lang['text']['contestinfo'];
$menulist[98]['items'][1]['text'] = $contestname;
$menulist[98]['items'][2]['text'] = $lang['contest']['startat'] . ": " . $starttime['string'];
$menulist[98]['items'][3]['text'] = $lang['contest']['endat'] . ": " . $endtime['string'];
$menulist[98]['items'][4]['text'] = ($started ? ($ended ? $lang['contest_ended'] : "{$timepassed} {$lang['general']['second']} / {$totaltime} {$lang['general']['second']}") : $lang['contest_not_started']);

$menulist[99]['flag'] = true;
$menulist[99]['title'] = $lang['text']['systeminfo'];
$menulist[99]['items'][1]['text'] = $lang['system']['name'];
$menulist[99]['items'][2]['text'] = $contest->version;
$menulist[99]['items'][3]['text'] = $lang['system']['copyright'];
$menulist[99]['items'][3]['url'] = "http://www.softrank.net";

$generalnotice = array();
$query = $db->query("select * from `{$tablepre}record` where (`type`='notice' or `type`='warning') and `uid`=0 order by `id` desc limit 0, 5");
while ($tempnotice = $db->fetch_array($query))
{
	$generalnotice[$tempnotice['id']] = $tempnotice;
}
$specificnotice = array();
$query = $db->query("select * from `{$tablepre}record` where (`type`='notice' or `type`='warning') and `uid`='{$uid}' and `uid`<>0 order by `id` desc limit 0, 5");
while ($tempnotice = $db->fetch_array($query))
{
	$specificnotice[$tempnotice['id']] = $tempnotice;
}

?>